<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="shortcut icon" href="../images/favicon.ico">
    <link rel="apple-touch-icon-precomposed" href="../images/apple-touch-icon.png">
    <title>tabbar</title>
    <link rel="stylesheet" href="../scripts/lib/seedsui/seedsui.min.css">
</head>

<body ontouchstart="">
	<!--头部-->
	<header>
        <div class="titlebar">
            <a class="titlebar-button" href="javascript:back()">
                <i class="icon icon-arrowleft"></i>
            </a>
            <h1 class="titlebar-title">Tabbar</h1>
        </div>
    </header>

    <!--主体-->
	<article>
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-line animated(可选)</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-line animated">
            <li class="tab active">
                <label class="tab-label">头条</label>
            </li>
            <li class="tab">
                <label class="tab-label">推荐</label>
            </li>
            <li class="tab">
                <label class="tab-label">娱乐</label>
            </li>
            <li class="tab">
                <label class="tab-label">本地</label>
            </li>
            <li class="tab">
                <label class="tab-label">财经</label>
            </li>
            <li class="tab">
                <label class="tab-label">自媒体</label>
            </li>
            <li class="tab">
                <label class="tab-label">科技</label>
            </li>
            <li class="tab">
                <label class="tab-label">美女</label>
            </li>
            <li class="tab">
                <label class="tab-label">军事</label>
            </li>
            <li class="tab">
                <label class="tab-label">体育</label>
            </li>
            <li class="tab">
                <label class="tab-label">历史</label>
            </li>
            <li class="tab">
                <label class="tab-label">汽车</label>
            </li>
            <li class="tab">
                <label class="tab-label">时尚</label>
            </li>
            <li class="tab">
                <label class="tab-label">房产</label>
            </li>
            <li class="tab">
                <label class="tab-label">段子</label>
            </li>
            <li class="tab">
                <label class="tab-label">舆情</label>
            </li>
        </ul>
        <br/>
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-line animated(可选) reverse</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-line animated reverse">
            <li class="tab active">
                <label class="tab-label">头条</label>
            </li>
            <li class="tab">
                <label class="tab-label">推荐</label>
            </li>
            <li class="tab">
                <label class="tab-label">娱乐</label>
            </li>
            <li class="tab">
                <label class="tab-label">本地</label>
            </li>
            <li class="tab">
                <label class="tab-label">财经</label>
            </li>
            <li class="tab">
                <label class="tab-label">自媒体</label>
            </li>
            <li class="tab">
                <label class="tab-label">科技</label>
            </li>
            <li class="tab">
                <label class="tab-label">美女</label>
            </li>
            <li class="tab">
                <label class="tab-label">军事</label>
            </li>
            <li class="tab">
                <label class="tab-label">体育</label>
            </li>
            <li class="tab">
                <label class="tab-label">历史</label>
            </li>
            <li class="tab">
                <label class="tab-label">汽车</label>
            </li>
            <li class="tab">
                <label class="tab-label">时尚</label>
            </li>
            <li class="tab">
                <label class="tab-label">房产</label>
            </li>
            <li class="tab">
                <label class="tab-label">段子</label>
            </li>
            <li class="tab">
                <label class="tab-label">舆情</label>
            </li>
        </ul>
        <br/>

        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-rect</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-rect" style="width:50%;">
            <li class="tab active">
                <label class="tab-label">机构</label>
            </li>
            <li class="tab">
                <label class="tab-label">组织</label>
            </li>
        </ul>
        <br/>
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-rect reverse</p>
        </div>
        <br/>
        <div class="bg-primary" style="padding: 8px 0;">
            <ul class="tabbar tabbar-rect reverse" style="width:50%;">
                <li class="tab active">
                    <label class="tab-label">机构</label>
                </li>
                <li class="tab">
                    <label class="tab-label">组织</label>
                </li>
            </ul>
        </div>
        <br/>

        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-lump</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-lump">
            <li class="tab active">
                <label class="tab-label">头条</label>
            </li>
            <li class="tab">
                <label class="tab-label">推荐</label>
            </li>
            <li class="tab">
                <label class="tab-label">娱乐</label>
            </li>
            <li class="tab">
                <label class="tab-label">本地</label>
            </li>
            <li class="tab">
                <label class="tab-label">财经</label>
            </li>
            <li class="tab">
                <label class="tab-label">自媒体</label>
            </li>
            <li class="tab">
                <label class="tab-label">科技</label>
            </li>
            <li class="tab">
                <label class="tab-label">美女</label>
            </li>
            <li class="tab">
                <label class="tab-label">军事</label>
            </li>
            <li class="tab">
                <label class="tab-label">体育</label>
            </li>
            <li class="tab">
                <label class="tab-label">历史</label>
            </li>
        </ul>
        <br/>
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-lump reverse</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-lump reverse">
            <li class="tab active">
                <label class="tab-label">头条</label>
            </li>
            <li class="tab">
                <label class="tab-label">推荐</label>
            </li>
            <li class="tab">
                <label class="tab-label">娱乐</label>
            </li>
            <li class="tab">
                <label class="tab-label">本地</label>
            </li>
            <li class="tab">
                <label class="tab-label">财经</label>
            </li>
            <li class="tab">
                <label class="tab-label">自媒体</label>
            </li>
            <li class="tab">
                <label class="tab-label">科技</label>
            </li>
            <li class="tab">
                <label class="tab-label">美女</label>
            </li>
            <li class="tab">
                <label class="tab-label">军事</label>
            </li>
            <li class="tab">
                <label class="tab-label">体育</label>
            </li>
            <li class="tab">
                <label class="tab-label">历史</label>
            </li>
        </ul>
        <br/>
        
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-footer</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-footer">
            <li class="tab active">
                <i class="icon icon-home-fill"></i>
                <label class="tab-label">首页</label>
            </li>
            <li class="tab">
                <i class="icon icon-chattip"></i>
                <label class="tab-label">消息</label>
            </li>
            <li class="tab">
                <i class="icon icon-contact"></i>
                <label class="tab-label">通讯录</label>
            </li>
            <li class="tab">
                <i class="icon icon-app"></i>
                <label class="tab-label">工作台</label>
            </li>
            <li class="tab">
                <i class="icon icon-rdomore"></i>
                <label class="tab-label">更多</label>
            </li>
        </ul>
        <br/>
        <div class="sliver underline">
            <span class="peg"></span>
            <p class="sliver-title">tabbar-footer reverse</p>
        </div>
        <br/>
        <ul class="tabbar tabbar-footer reverse">
            <li class="tab active">
                <i class="icon icon-home-fill"></i>
                <label class="tab-label">首页</label>
            </li>
            <li class="tab">
                <i class="icon icon-chattip"></i>
                <label class="tab-label">消息</label>
            </li>
            <li class="tab">
                <i class="icon icon-contact"></i>
                <label class="tab-label">通讯录</label>
            </li>
            <li class="tab">
                <i class="icon icon-app"></i>
                <label class="tab-label">工作台</label>
            </li>
            <li class="tab">
                <i class="icon icon-rdomore"></i>
                <label class="tab-label">更多</label>
            </li>
        </ul>
    </article>
	
    <script>
    window.addEventListener("load",function(e){
        [].slice.call(document.querySelectorAll('.tabbar')).forEach(function(tabbar){
            tabbar.onclick=function(e){
                [].slice.call(tabbar.querySelectorAll('.tab')).forEach(function(tab) {
                    tab.classList.remove("active");
                });
                e.target.classList.add("active");
            }
        });
    },false);
	//定义exmobi返回
	function back(){history.go(-1);}

	</script>
</body>
</html>
